package com.example.dicos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.dicos.entity.WxRolePermissionRelation;
import com.example.dicos.entity.vo.WxPermissionVo;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 后台用户角色和权限关系表 Mapper 接口
 * </p>
 *
 * @author 开发者
 * @since 2022-07-11
 */
@Component
public interface WxRolePermissionRelationMapper extends BaseMapper<WxRolePermissionRelation> {

    /**
     * 根据角色查询对应的权限
     */
    List<WxPermissionVo> queryWxPermissionVoList(Long roleId);
    List<WxRolePermissionRelation> queryWxPermissionVoById(String roleId);
    Integer deleteById(String roleId);
}
